package com.example.demo.controller;

import com.alibaba.fastjson.JSON;
import java.util.ArrayList;
import java.util.List;

/**
 * @className: DemoController
 * @author: wangkai
 * @description: TODO
 * @create: 2020-03-18 21:04
 * @version: 1.0
 **/
public class DemoController {

    public static void main(String [] args){
        List<String> a = new ArrayList<>();
        String all = "['645769948248359086','7383964505652019788','114397701378297060','5230395727219147361','517783568262579557','8817728517635395467','1118907314775867992','741235373484492724','1454576302062323072','1114979144147223052','6115046721783614304','1434990045968550638','2718925214675258127','5585293166182417466','7509440660981564385','5752575646958177403','8470926246487411396','4307345508481646870','988969681810967539','7571080340473269535','8709090046113237154','8627513020136573160','8189254006461122067','4675238831503265331','6308448128105400256','7684240182253668122','7007642576025830249','7224030295832546292','4896848920152850890','2551815026091574363','8476353430189067573','1294422789390288329','6676382780893972701','6101811853523437059','5810010457479073509','1561312359237437658','2924885152210766315','7525718734642761599','785195138634238047','2032604518837275226','7703688103409239657','6382935992028188324','7640173439602740602','571498827725293451','687881310218636882','5208382598543658184','9019192190625398885','2115576180674609708','2915421446187925608','1564795162614646061','913825619782814275','538923217571496557','6445494701963494994','6175396671641635919','9049989527610213629','1301368900494445882','2622333600799606876','1356436147297537809','764416642607300816','7093645605817436766','4494829058718713570','2390471913808348556','1927805090301366092','8136563285332411436','8454760655908326161','3444945533377594572','7542081400230596415','887939788020991523','4672203428971040434','8654072254307256019','5264051454380819269','3224698482197218075','803153601365232971','8189254006461122067','7689119354117965729','4123345699032744789','5546604447034654827','3087341304339645167','3176374929820434600','1631807439185331969','3812110586033293814','5025001072954657513','7774100488226293166','5436473760772539489','1615465285910482427','609992563165315568','757277683085165741','3382253293919684698','8395562420166017273','7962572532959823857','7574862055362936837','2763296265364654858','6633356865734528216','586557254852755713','4792330851571024374','5803722894074398297','3864203900613378372','7691183035382516888','4661417486626080618','1531403768575771803','503018497207781448','2090722209773669207','3447096584279247788','1844070975977898408','1568145540399713012','4800488492117872142','6750179753277801484','7242545396355516504','6068064542965580220','9056488825671008810','2038580212706658876','3610344847127300651','3390592253999595889','2712106427161463758','3812110586033293814','8171239722168896041','2553066929586261310','6321963973828168229','5671967588344153165','2831730936216962529','3304403683022163904','5383631537927832332','170381166982612560','6474331579613987715','2801642178983511714','2607656600313678655','8963232976344469302','4652145772632293729','2604492473751457008','6565845956385393202','5592784453710987848','4430993266417157563','8391592258386150635']";
        String s = "['123456','2345678']";
        ArrayList<String> allList = JSON.parseObject(all,ArrayList.class);
        System.out.println(allList.size());
        String exit = "['7509440660981564385','7703688103409239657','5208382598543658184','1927805090301366092','6474331579613987715','741235373484492724','3304403683022163904','7571080340473269535','8817728517635395467','2038580212706658876','538923217571496557','2032604518837275226','8171239722168896041','1301368900494445882','1531403768575771803','3382253293919684698','3447096584279247788','1454576302062323072','5671967588344153165','4652145772632293729','3864203900613378372','7684240182253668122','1844070975977898408','8470926246487411396','6445494701963494994','8189254006461122067','1356436147297537809','887939788020991523','764416642607300816','2924885152210766315','8963232976344469302','3224698482197218075','571498827725293451','3444945533377594572','3176374929820434600','4307345508481646870','6101811853523437059','687881310218636882','9056488825671008810','5025001072954657513','2607656600313678655','4800488492117872142','7525718734642761599','4675238831503265331','2390471913808348556','5546604447034654827','7691183035382516888','5264051454380819269','4430993266417157563','7774100488226293166','6382935992028188324','7962572532959823857','4672203428971040434','5810010457479073509','7242545396355516504','3610344847127300651','988969681810967539','4661417486626080618','6068064542965580220','2622333600799606876','2718925214675258127','9049989527610213629','8627513020136573160','4123345699032744789','2551815026091574363','2604492473751457008','8476353430189067573','114397701378297060','8654072254307256019','8136563285332411436','6308448128105400256','1561312359237437658']";
        ArrayList<String> exitList = JSON.parseObject(exit,ArrayList.class);
        ArrayList<String> notExit = new ArrayList<>();
        System.out.println(exitList.size());
        //找到不存在的管理员
        for (String personID:allList){
            if (exitList.contains(personID)){
                continue;
            }
            notExit.add(personID);
        }
        System.out.println(notExit.size());
        System.out.println(JSON.toJSONString(notExit));
    }
}
